from django.db import models
from Publisher.models import Publisher

# Create your models here.
class Book(models.Model):
    name=models.CharField(max_length=50)
    publisher=models.ForeignKey(Publisher,on_delete=models.CASCADE,related_name='publisher')
    status=models.IntegerField()
    reader=models.IntegerField(null=True)
    updatetime=models.DateTimeField(auto_now=True)